package com.bishe.psy.service;

import com.bishe.psy.model.Booking;

import java.util.List;

/**
 * Created with Intellij IDEA.
 * Description:
 * User: L
 * Date: 2024-05-02
 * Time: 9:32
 */
public interface IBookingService {

    //新增一条预约记录
    void create(Booking booking);

    Booking selectByPostUserId(Long postUserId,Long receiveUserId);

    //查询该用户的所有预约记录
    List<Booking> selectAll(Long postUserId);

    //咨询师查询预约记录
    List<Booking> selectAllCon(Long receiveUserId);

    //咨询师查询没确认的预约记录
    List<Booking> selectIsNoBooking(Long receiveUserId);

    //更新预约状态
    void  updateStateById(Booking booking);

    //根据id查询预约记录
    Booking selectById(Long id);
}
